# 正向索引
# print(soz[0:5])  # Salem
# 反向索引
num = "123456789"
print(num[-4:-1]) # 678
